<?php
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model backend\models\AdminUser */
$this->title = '会员权益';
$user = Yii::$app->user->identity;
?>
<section class="app-container app-index">
    
    <!-- form -->
    <!--
        这个地方针对图片做了处理 宽高 == 100%
     -->
    <?= $this->render('flash') ?>

    <!-- nav -->
    <menu class="app-index-menu">
        <a href="<?= Url::toRoute(['site/signup']) ?>">
            <img src="/images/index/index-menu1.jpg" alt="">
            <?php
            if( !$user ){
                echo '会员登记';
            }else{
                echo $user->isVip() ? '会员续费与升级' : (!$user->isUserInfo() ? '办理会员入会' : '会员登记');
            }
            ?>
        </a>
        <a href="">
            <img src="/images/index/index-menu2.jpg" alt="">
            会员增值服务
        </a>
        <a href="<?= Url::to(['member/shenqing', 'type'=> 2]) ?>">
            <img src="/images/index/index-menu2.jpg" alt="">
            补贴申请
        </a>
    </menu>

</section>

